package edu.kaist.cs442.client.android.common.pushutil.receive;

import android.app.NotificationManager;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
import edu.kaist.cs442.client.android.common.notification.NotificationBar;


/**
 * Created by IntelliJ IDEA.
 * User: duyleekun
 * Date: 2/25/12
 * Time: 3:49 PM
 * To change this template use File | Settings | File Templates.
 */
public class C2DMMessage extends BroadcastReceiver {

	NotificationManager nm;

	@Override
	public void onReceive(Context context, Intent intent) {
		Log.w("c2dm", "Message received");
		Log.w("c2dm", intent.getStringExtra("tickerText"));
		Log.w("c2dm", intent.getStringExtra("contentTitle"));
		Log.w("c2dm", intent.getStringExtra("contentText"));
		NotificationBar.send(context, 1, intent.getStringExtra("tickerText"), intent.getStringExtra("contentTitle"), intent.getStringExtra("contentText"));

	}
}
